﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using sdm.exam.domain;
using sdm.exam.ui.ExamAdministration;

namespace sdm.exam.ui
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            Ninjector.DefaultSetup();
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            grid1.Children.Add(new MainControl());
        }

        private void btnExamManager_Click(object sender, RoutedEventArgs e)
        {
            grid1.Children.Clear();
            grid1.Children.Add(new MainExamAdminMenu());
        }

        private void button3_Click(object sender, RoutedEventArgs e)
        {
            grid1.Children.Clear();
            grid1.Children.Add(new TeamRegistration());
        }
    }
}
